import request from '../uni-request.js'
import {
	placeURL,
	baseURL
} from "../base.js";

export const logout = (data) => {
	const url = `${baseURL}/user/index/logout`;

	return request({
		method: 'POST',
		data,
		url
	})
}

export const uploadHeadIcon = (token, data) => {
	const url = baseURL + "/update-app-headico"
	return request({
		header: {
			Authorization: token,
			"Content-Type": "application/x-www-form-urlencoded",
		},
		url,
		method: "post",
		data,
	})
}


export const getUserInfo = (token) => {
	const url = baseURL + "/get-user-info"
	return request({
		url,
		method: "post",
		data: {
			token
		},
	})
}
